<template>
  <div class="forbidden">
    <div class="content">
      <h1>403</h1>
      <h2>没有权限</h2>
      <p>很抱歉，您没有权限访问此页面</p>
      <el-button type="primary" @click="goBack">返回</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const goBack = () => {
  router.go(-1);
};
</script>

<style scoped>
.forbidden {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f2f5;
}

.content {
  text-align: center;
}

h1 {
  font-size: 72px;
  color: #F56C6C;
  margin: 0;
}

h2 {
  font-size: 24px;
  margin: 20px 0;
}

p {
  color: #606266;
  margin-bottom: 30px;
}
</style> 